<?php
/********************************************************************
 *	Author:
 *		Jestery Liu <jestery@gmail.com>
 *		http://www.pte.cn
 *
 *	File:			Response.interface.php
 *	Create Date:	2007-05-18 17:34:16 CST
 *******************************************************************/

interface IResponse
{
	public function __construct($outputBuffing = true, $obHandler = 'ob_gzhandler');

	public function setHttpResponseCode($code);
	public function getHttpResponseCode();
	public function addHeader($headerName, $value, $replace=false);
	public function addRawHeader($header, $replace=false);
	public function addNoCacheHeaders();
	public function clearHeaders();
	public function getHeaders();
	public function canSendHeaders();
	public function sendHeaders();
	public function add404Header();
	public function setRedirect($url);
	public function setCookie($var, $value, $life = 0);
	public function getBody();
	public function addBodyContent($content, $name='default');
	public function appendBodyContentToSegment($content, $name='default');
	public function prependBodyContentToSegment($content, $name='default');
	public function insertBodyContent($content, $name, $segName=null, $before=false);
	public function sendBody();
	public function clearBody($name=null);
	public function send($flush=true);
	public function __toString();
}

/* vim: set ts=4 sw=4 ff=unix: */
